package com.gy.api.mobile.app;


import com.github.pagehelper.PageInfo;
import com.gy.api.base.ApiIndex;
import com.gy.api.base.R;
import com.gy.api.base.RestPage;
import com.gy.api.pc.filings.domain.vo.PageScriptRecordVO;
import com.gy.api.pc.filings.domain.vo.ScriptRecordSearchVO;
import com.gy.api.pc.filings.service.IPatentApplicationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@RestController
@RequestMapping("/app/script/record/info")
@Api( tags = ApiIndex.H5_IndexController)
public class AppScriptRecordInfoController {

    @Autowired
    IPatentApplicationService scriptRecordInfoService;


    @GetMapping("/page")
    @ApiOperation(value = "剧本备案信息管理-公示列表")
    public R<RestPage<PageScriptRecordVO>> scriptRecordPublicityInfo(@ApiParam(value = "查询参数") @ModelAttribute  ScriptRecordSearchVO searchVO) {
        List<PageScriptRecordVO> list = scriptRecordInfoService.scriptRecordPublicityInfo(searchVO);
        RestPage restPage = new RestPage( new PageInfo(list),list);
        return new R(restPage);
    }


}

